/*
 * Copyright (C) 2015 The Gravitee team (http://gravitee.io)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@use 'sass:map';
@use '../../../../node_modules/@angular/material/index' as mat;
@use '../../../../node_modules/@gravitee/ui-particles-angular/index' as gio;
@use '../../../scss/gio-layout' as gio-layout;

$typography: map.get(gio.$mat-theme, typography);
:host {
  @include gio-layout.gio-responsive-margin-container;
}

.api-portal-headers {
  .card-header-with-btn {
    display: flex;
    align-items: flex-end;
    flex-direction: row;
    justify-content: space-between;
  }

  mat-card-title {
    @include mat.typography-level($typography, subtitle-1);
  }
}

.form-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.toggle-group {
  display: flex;
  flex-direction: column;
}

.actions__edit {
  display: flex;
  justify-content: end;
}

.order-buttons {
  display: flex;
}

.add-headers {
  display: flex;
  flex-direction: row;
  justify-content: end;
  margin: 16px 0;

  .add-button {
    width: auto;
  }
}
